Add parentheses to trace_do_casts macro.
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Mon, 19 Mar 2007 09:32:52 +0000 (09:32 +0000)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Mon, 19 Mar 2007 09:32:52 +0000 (09:32 +0000)
commit569b0bb3b92ca539da34d41d092deb8edb7a81ce
tree4b6cd7a07aa7f4537e995e0d2a338563ddfb849e
parentca039d02446698730d586df9ed3ba3fcd2c4bd98
Add parentheses to trace_do_casts macro.

The arguments to this macro didn't have parentheses around them where
they were used.  If a call to a TRACE macro included an expression as
an argument, the cast to (unsigned long) could bind to just part of
the expression and lead to unexpected results.

Signed-off-by: Michael Vrable <mvrable@cs.ucsd.edu>
xen/include/xen/trace.h